﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace MvcMovieNew.Controllers
{
    public class HelloWorldController : Controller
    {
        //
        // GET: /HelloWorld/

        public ActionResult Index()
        {
            return View();
        }

        //GET:/helloWorld/Welcome

        public ActionResult Welcome(String name,int numtimes=1)
        {
            String message = String.Format("Welcome {0}",name);
            ViewBag.Message = message;
            ViewBag.NumTimes = numtimes;
            return View();
        }
    }
}
